﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace WebAPlTest
{
    public class DataService
    {
        public List<Book> GetAllBooks()
        {
            return data;
            DataService service = new DataService();
            var data = service.GetAllBooks();
        }
        public class HmeController
        {
            private readonly IDataService dataService;
            public HomeController(IDataService dataService)
            {
                this.dataService = dataService;
            }
            public void ShowData()
            {
                var data = dataService.GetAllBooks();
            }
        }
    }
}
